package dfl.bysj.service;

import dfl.bysj.config.WXAuth;
import dfl.bysj.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import dfl.bysj.entity.VO.StudentVO;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.transaction.annotation.Transactional;

import java.util.concurrent.ConcurrentHashMap;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author DFL
 * @since 2022-04-26
 */
public interface UserService extends IService<User> {
    @Transactional
    String getSessionId(String code);
    ConcurrentHashMap<String,Object> authLogin(WXAuth wxAuth) throws Exception;

    User getUserByOpenId(String openId);

    User getUserById(Integer id);

    @Transactional
    int regist_student(StudentVO studentVO);

    String getOpenIdByStuUseId(Integer stuUseId);
}
